from django.db import models


# Create your models here.
class Srcip(models.Model):
    hosts = models.CharField(max_length=255)
    description = models.CharField(max_length=255)

    def __str__(self):
        # 在Python3中使用 def __str__(self):
        return self.hosts, self.description


class Dstdomain(models.Model):
    dstdomain = models.CharField(max_length=255)

    def __str__(self):
        # 在Python3中使用 def __str__(self):
        return self.dstdomain


class ApisDstdomain(models.Model):
    dstdomain = models.CharField(max_length=255)

    class Meta:
        managed = False
        db_table = 'apis_dstdomain'


class ApisSrcip(models.Model):
    hosts = models.CharField(max_length=255)
    description = models.CharField(max_length=255)

    class Meta:
        managed = False
        db_table = 'apis_srcip'
